package cn.funeralobjects.util;

/**
 * 数字工具类，对org.springframework.util.NumberUtils的扩展
 *
 * @author FuneralObjects
 * Create date: 2019/12/23 5:37 PM
 */
public class NumberUtils extends org.springframework.util.NumberUtils {

    private static final byte ZERO = 0;

    public static boolean isZero(Number number) {
        if (number == null) {
            return false;
        }
        return number.byteValue() == ZERO;
    }


}
